<!doctype html>
<html lang="zh-CH">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    {{--<meta name="viewport" content="width=device-width, initial-scale=1">--}}
    <title>央票通</title>
    <link rel="stylesheet" href="./resource/css/index.css">
    <link rel="stylesheet" href="./resource/css/project_details.css">
</head>
<body>
<!-- 头部 -->
@include('common.index_head')
        <!-- 列表 -->
<div class="cont-list">
    <div class="import">
        <div class="main">
            <div class="cont-import">
                <div class="title">体验标</div>
                <div class="first"><span>项目期限：</span><span>1天</span></div>
                <div class="span"><span>年化收益率：</span><span>10%</span></div>
                <div class="last">付息方式：按月付息,到期还本</div>
                <div class="btn"><a href="/project_details_experience">立即投资</a></div>
            </div>
        </div>
    </div>
    <div class="title">
        <div class="main">
            <div class="line-slide" style="left: 82px;"></div>
            <ul>
                <li ><a href="./project_list_ypt">央票通</a></li>
                <li class="active">上市通</li>
            </ul>
        </div>
    </div>
    <div class="list">
        <div class="list-market cont-common">
            <div class="main">
                <div class="container">
                    @foreach($sst_info as $k=>$v)
                        @if($v->created>=time())
                            @if($v->created-time()<86400)
                                <div class="cont not-on-line">
                                    <div class="title">
                                        <div class="h4">{{$v->project_name}}</div>
                                        <div class="small">出票企业：{{$v->company_name}}</div>
                                        <div class="rank">{{CompanyEnum::$Plate_types[$v->plate]}}</div>
                                    </div>
                                    <div class="box">
                                        <div class="bar">
                                            <div class="process" bar="{{$v->percentage}}">
                                                <img src="{{$v->logo}}" alt="" height="60" weight="80">
                                            </div>
                                            <p class="first">上线时间   <time class="end_time">{{date('Y-m-d H:i:s',$v->created)}}</time> </p>
                                            <p> 剩余可投金额<?php echo $v->already_money;?>元</p>
                                        </div>
                                        <ul>
                                            <li>项目规模<span id="J_inner_8">{{number_format($v->project_scale)}}</span>元</li>
                                            <li class="sec">年化收益<span>{{$v->yield_rate}}%</span></li>
                                            <li>项目期限<span>{{$v->limit}}</span>天</li>
                                            <li class="last">还款方式<span>{{ProjectEnum::$Pay_types[$v->pay_id]}}</span></li>
                                            <li class="last">票据种类<span>{{ProjectEnum::$Ticket_types[$v->ticket_type]}}</span></li>
                                        </ul>
                                        <div class="btn">
                                            <a href="javascript:;">距上线  <time class="countdown"></time></a>
                                        </div>
                                    </div>
                                </div>
                            @else
                                <div class="cont forenotice">
                                    <div class="title">
                                        <div class="h4">{{$v->project_name}}</div>
                                        <div class="small">出票企业：{{$v->company_name}}</div>
                                        <div class="rank">{{CompanyEnum::$Plate_types[$v->plate]}}</div>
                                    </div>
                                    <div class="box">
                                        <div class="bar">
                                            <div class="process" bar="{{$v->percentage}}">
                                                <img src="{{$v->logo}}" alt="" height="60" weight="80">
                                            </div>
                                            <p class="first">上线时间   <time class="end_time">{{date('Y-m-d H:i:s',$v->created)}}</time> </p>
                                            <p> 剩余可投金额<?php echo $v->already_money;?>元</p>
                                        </div>
                                        <ul>
                                            <li>项目规模<span id="J_inner_8">{{number_format($v->project_scale)}}</span>元</li>
                                            <li class="sec">年化收益<span>{{$v->yield_rate}}%</span></li>
                                            <li>项目期限<span>{{$v->limit}}</span>天</li>
                                            <li class="last">还款方式<span>{{ProjectEnum::$Pay_types[$v->pay_id]}}</span></li>
                                            <li class="last">票据种类<span>{{ProjectEnum::$Ticket_types[$v->ticket_type]}}</span></li>
                                        </ul>
                                        <div class="btn">
                                            <a href="javascript:;">项目预告</a>
                                        </div>
                                    </div>
                                </div>
                            @endif
                        @else
                            <div class="cont investment">
                                <div class="title">
                                    <div class="h4">{{$v->project_name}}</div>
                                    <div class="small">出票央企：{{$v->company_name}}</div>
                                    <div class="rank">{{CompanyEnum::$Plate_types[$v->plate]}}</div>
                                </div>
                                <div class="box">
                                    <div class="bar">
                                        <div class="process" bar="{{$v->percentage}}">
                                            <img src="{{$v->logo}}" alt="" height="60" weight="80">
                                        </div>
                                        <p class="first">当前投资进度 {{$v->percentage}}</p>
                                        <p> 剩余可投金额<?php echo $v->already_money;?>元</p>
                                    </div>
                                    <ul>
                                        <li>项目规模<span id="J_inner_6">{{number_format($v->project_scale)}}</span>元</li>
                                        <li class="sec">年化收益<span>{{$v->yield_rate}}%</span></li>
                                        <li>项目期限<span>{{$v->limit}}</span>天</li>
                                        <li class="last">还款方式<span>{{ProjectEnum::$Pay_types[$v->pay_id]}}</span></li>
                                        <li class="last">票据种类<span>{{ProjectEnum::$Ticket_types[$v->ticket_type]}}</span></li>
                                    </ul>
                                    <?php if($v->times>0||$v->percentage=='100.00%'){?>
                                    <div class="btn btn-end">
                                        <a href="/project_sst?project_id={{$v->project_id}}&type={{$v->type}}">已完成</a>
                                    </div>
                                    <?php }else{?>
                                    <div class="btn">
                                        <a href="/project_sst?project_id={{$v->project_id}}&type={{$v->type}}">立即投资</a>
                                    </div>
                                    <?php }?>
                                </div>
                            </div>
                        @endif
                    @endforeach
                    {{$sst_info->links()}}
                </div>
            </div>
        </div>
    </div>
</div>
<!-- footer -->
@include('common.index_foot')

<script src="./resource/js/jquery-1.11.3.min.js"></script>
<script src="./resource/js/index.js"></script>
<script src="./resource/js/jquery.process.js"></script>
<script src="./resource/js/project.js"></script>
<script src="./resource/js/bar.js"></script>
</body>
</html>